<template>
    <el-upload
            ref="upload"
            action="http://localhost:8080/common/getCarType"
            :auto-upload="true"
            :show-file-list="false"
            :on-success="handleSuccess"
    >
        <el-button type="primary">选择拍照</el-button>
    </el-upload>

</template>

<script setup>
    import {ref} from 'vue'
    import {genFileId} from 'element-plus'

    const handleSuccess = (res) => {
        if(res.code = 200){
            console.log(res.data)
        }
    }


</script>

<style scoped>

</style>
